Optimal. Leaf size=97 \[ -\frac {a \sin (c+d x) (e \cos (c+d x))^{p+1} \, _2F_1\left (\frac {1}{2},\frac {p+1}{2};\frac {p+3}{2};\cos ^2(c+d x)\right )}{d e (p+1) \sqrt {\sin ^2(c+d x)}}-\frac {b (e \cos (c+d x))^{p+1}}{d e (p+1)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.05, antiderivative size = 97, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.095, Rules used = {2669, 2643} \[ -\frac {a \sin (c+d x) (e \cos (c+d x))^{p+1} \, _2F_1\left (\frac {1}{2},\frac {p+1}{2};\frac {p+3}{2};\cos ^2(c+d x)\right )}{d e (p+1) \sqrt {\sin ^2(c+d x)}}-\frac {b (e \cos (c+d x))^{p+1}}{d e (p+1)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2643
Rule 2669
Rubi steps
\begin {align*} \int (e \cos (c+d x))^p (a+b \sin (c+d x)) \, dx &=-\frac {b (e \cos (c+d x))^{1+p}}{d e (1+p)}+a \int (e \cos (c+d x))^p \, dx\\ &=-\frac {b (e \cos (c+d x))^{1+p}}{d e (1+p)}-\frac {a (e \cos (c+d x))^{1+p} \, _2F_1\left (\frac {1}{2},\frac {1+p}{2};\frac {3+p}{2};\cos ^2(c+d x)\right ) \sin (c+d x)}{d e (1+p) \sqrt {\sin ^2(c+d x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 0.99, size = 240, normalized size = 2.47 \[ -\frac {(e \cos (c+d x))^p \left (-\frac {1}{2} a (p-1) \sin (2 (c+d x)) \, _2F_1\left (\frac {1}{2},\frac {p+1}{2};\frac {p+3}{2};\cos ^2(c+d x)\right )+b 2^{-p-1} \left (1+e^{2 i (c+d x)}\right ) \left (e^{-i (c+d x)}+e^{i (c+d x)}\right )^p \sqrt {\sin ^2(c+d x)} \left ((p+1) e^{i (c+d x)} \, _2F_1\left (1,\frac {p+3}{2};\frac {3-p}{2};-e^{2 i (c+d x)}\right )-(p-1) e^{-i (c+d x)} \, _2F_1\left (1,\frac {p+1}{2};\frac {1-p}{2};-e^{2 i (c+d x)}\right )\right ) \cos ^{-p}(c+d x)\right )}{\left (d-d p^2\right ) \sqrt {\sin ^2(c+d x)}} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 0.58, size = 0, normalized size = 0.00 \[ {\rm integral}\left ({\left (b \sin \left (d x + c\right ) + a\right )} \left (e \cos \left (d x + c\right )\right )^{p}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (b \sin \left (d x + c\right ) + a\right )} \left (e \cos \left (d x + c\right )\right )^{p}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [F] time = 1.77, size = 0, normalized size = 0.00 \[ \int \left (e \cos \left (d x +c \right )\right )^{p} \left (a +b \sin \left (d x +c \right )\right )\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (b \sin \left (d x + c\right ) + a\right )} \left (e \cos \left (d x + c\right )\right )^{p}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int {\left (e\,\cos \left (c+d\,x\right )\right )}^p\,\left (a+b\,\sin \left (c+d\,x\right )\right ) \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \left (e \cos {\left (c + d x \right )}\right )^{p} \left (a + b \sin {\left (c + d x \right )}\right )\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________